//
//  MU_picBlock.h
//  fistboard
//
//  Created by Qian Kun on 13-7-24.
//  Copyright (c) 2013年 iwind. All rights reserved.
//

#define dHeight 140
#define dWidth 150
#define dLabelHeight 40//标签高度
#define dFontLabel [UIFont systemFontOfSize:15.0f]//标题字体
#define dColorTextTitle [UIColor hexChangeFloat:@"393939"]//字体颜色
#define dImageBg [UIImage imageNamed:@"bg_pic3"]//背景图片

#define dImgGap 3//图片边框距离


#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
//#import <SDWebImage/UIImageView+WebCache.h>
//#import "Constants.h"
//#import "UIColor+extend.h"
#import "UIImageView+WebCache.h"

@protocol picBlockDelegate;

@interface MU_picBlock : UIView
{
    UIImageView* bgView;//背景
    UILabel* label;//显示标题
    UIImageView* imgView;//显示图片
}

@property id<picBlockDelegate>delegate;


@property (nonatomic,strong) NSString* mu_title;//显示文字
@property (nonatomic,strong) NSString* mu_imgURL;//图片链接
@property (nonatomic,assign) int mu_index;//序号
@property (nonatomic ,strong) id mu_info;

-(id)initWithOrigin:(CGPoint )initialPoint atIndex:(int)index andTitle:(NSString *)title andImageURL:(NSString *)imgURL;

@end


@protocol picBlockDelegate <NSObject>//协议

-(void)onClick:(MU_picBlock *)block;

@end
